// @ts-ignore
const images = import.meta.glob('@/assets/iconPath/*.png', { eager: true });

const iconPath: Record<string, string> = {};

for (const [key, value] of Object.entries(images)) {
  const name = key.match(/icon(\d+)\.png$/)?.[0].replace('.png', '');
  if (name) {
    iconPath[name] = (value as { default: string }).default;
  }
}

export default iconPath;